package com.patrol.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.patrol.dao.RiskPointDao;
import com.patrol.pojo.RiskPoint;
import com.patrol.service.RiskPointService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RiskPointServiceImpl extends ServiceImpl<RiskPointDao, RiskPoint> implements RiskPointService {
    @Override
    public List<RiskPoint> selectAllRiskPoint() {
        List<RiskPoint> riskPoints = baseMapper.selectList(null);
        return riskPoints;
    }

    @Override
    public RiskPoint selectById(Integer id) {
        RiskPoint riskPoint = baseMapper.selectById(id);
        return riskPoint;
    }
}
